﻿using Resume.Model;

namespace Resume.IRepository;

public interface IFieldClassDict_Repository
{
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="FieldClassDict"></param>
    /// <returns></returns>
    int Add(FieldClassDict FieldClassDict);

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="FieldClassDict"></param>
    /// <returns></returns>
    int Del(FieldClassDict FieldClassDict);

    /// <summary>
    /// 改
    /// </summary>
    /// <param name="FieldClassDict"></param>
    /// <returns></returns>
    int Edit(FieldClassDict FieldClassDict);

    /// <summary>
    /// 查
    /// </summary>
    /// <returns></returns>
    List<FieldClassDict> Get();

    /// <summary>
    /// 查
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    FieldClassDict GetSinge(int id);

    /// <summary>
    /// 条件查询
    /// </summary>
    /// <param name="name">姓名</param>
    /// <param name="isAsc">是否正序</param>
    /// <param name="pageIndex">页码</param>
    /// <param name="pageSize">每页大小</param>
    /// <returns></returns>
    Page<FieldClassDict> GetPageData(string name, bool isAsc, int pageIndex, int pageSize);
}